//常量
export default {
  org: {
    name: '',
    jgdm: '',
    qylb: '',
    qyxz: '',
    zzlx: '',
    xxdz: '',
    dh: '',
    gdlxr: '',
    gdlxdh: '',
    jyfw: '',
    qydj: ''
  },

  //在建项目信息
  zjxmProps: {
    height: 260,
    size: 'small',
    showColumnPicker: false,
    showPager: false,
    jsxdata: {
      "data": [],
    },
    jsxcolumns: [
      {dataKey: 'xh', title: '序号', width: 70, ordered: false},
      {dataKey: 'gcmc', title: '工程名称', width: 347, ordered: false},
      {dataKey: 'kgrq', title: '开工日期', width: 130, ordered: false},
    ],
  },

  //在建项目信息
  yjxmProps: {
    height: 260,
    size: 'small',
    showColumnPicker: false,
    showPager: false,
    jsxdata: {
      "data": [],
    },
    jsxcolumns: [
      {dataKey: 'xh', title: '序号', width: 70, ordered: false},
      {dataKey: 'gcmc', title: '工程名称', width: 347, ordered: false},
      {dataKey: 'jgrq', title: '竣工日期', width: 130, ordered: false},
    ],
  },

  //资质信息
  zzProps: {
    height: 270,
    size: 'small',
    showColumnPicker: false,
    showPager: false,
    jsxdata: {
      "data": [],
    },
    jsxcolumns: [],
  },

  //员工信息
  ryProps: {
    height: 270,
    size: 'small',
    showColumnPicker: false,
    showPager: false,
    jsxdata: {
      "data": [],
    },
    jsxcolumns: [
      {dataKey: 'xh', title: '序号', width: 60, ordered: false},
      {
        dataKey: 'xm', title: '姓名', width: 95, render: function (cellData,rowData) {
        return <div><a href={`#grxx/${rowData.id}`}>{cellData}</a></div>
      }
      },
      {dataKey: 'sfz', title: '身份证号', width: 135, ordered: false},
      {dataKey: 'sjhm', title: '手机号码', width: 135, ordered: false},
    ],
  },

  // 企业人员证书分类统计
  pctjProps: {
    title : {
      text: '人员证书分类统计',
      center: ['30%', '50%'],
    },
    tooltip : {
      trigger: 'item',
      formatter: "{a} <br/>{b} : {c} ({d}%)"
    },
    legend: {
      type: 'scroll',
      orient: 'vertical',
      right: 10,
      top: 20,
      bottom: 20,
      data: []
    },
    series : [
      {
        name: '人员证书',
        type: 'pie',
        radius : '70%',
        center: ['30%', '50%'],
        data: [],
        itemStyle: {
          emphasis: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: 'rgba(0, 0, 0, 0.5)'
          }
        },
        label: {
          normal: {
            show: false
          }
        },
        labelLine: {
          normal: {
            show: false
          }
        }
      }
    ]
  },

  //诚信分信息
  cxfProps: {
    height: 246,
    size: 'small',
    showColumnPicker: false,
    showPager: false,
    jsxdata: {
      "data": [],
    },
    jsxcolumns: [
      {dataKey: 'eqt', title: '类型', width: 145, ordered: false},
      {dataKey: 'score', title: '诚信分数', width: 90, ordered: false},
      {dataKey: 'cl', title: '诚信等级', width: 90, ordered: false},
      {dataKey: 'realAddScore', title: '实际加分', width: 90, ordered: false},
      {dataKey: 'realMinusScore', title: '实际扣分', width: 90, ordered: false},
    ],
  }
}
